package com.warrior.superdata.mysql.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.warrior.superdata.base.BasePageResultVo;
import com.warrior.superdata.mysql.entity.ApiInfo;
import com.warrior.superdata.mysql.entity.dto.AddApiParamDto;
import com.warrior.superdata.mysql.entity.dto.AddApiResultDto;
import com.warrior.superdata.mysql.entity.dto.ApiInfoDetailDto;
import com.warrior.superdata.mysql.entity.dto.ApiInfoDto;

import java.util.List;

/**
 * @Description:
 * @ClassName: com.warrior.wisdom.machine.room.mysql.service.impl.ApiInfoService.java
 * @date: 2022/2/23 10:23
 * @author xujian
 */
public interface ApiInfoService extends IService<ApiInfo> {

    List<ApiInfoDetailDto> getApiInfoList(Integer id);

    void addApiInfo(ApiInfoDetailDto apiInfoDetailDto);

    void updateApiInfo(ApiInfoDetailDto apiInfoDetailDto);

    void delete(Integer id);

    void addApiParam(AddApiParamDto addApiParamDto);

    void deleteApiParam(AddApiParamDto addApiParamDto);

    void addApiResult(AddApiResultDto addApiResultDto);

    void deleteApiResutl(AddApiResultDto addApiResultDto);

    BasePageResultVo<List<ApiInfoDetailDto>> getApiInfoPage(ApiInfoDto apiInfoDto);

    void saveOrUpdateApiInfo(ApiInfoDetailDto apiInfoDetailDto);
}
